package com.fpswork.common;

public class Constant {
	/**
	 * 用户状态枚举 0:未激活 1:激活 2:帐号注销3:黑名单4:帐号恢复
	 */
	public static enum USER_STATUS {
		CREATED, ACTIVE, DISABLED, BLACKLISTED, ENABLED
	};
	
    public static final String DB_ORACLE = "oracle";
    public static final String DB_SQLSERVER  = "sqlserver";


    public static final String FORMAT_DATE = "yyyy-MM-dd";
    public static final String FORMAT_DATETIME  = "yyyy-MM-dd HH:mm:ss";
    public static final String FORMAT_TIME = "HH:mm:ss";
    public static final String FORMAT_TIMESTAMP = "yyyy-MM-dd HH:mm:ss.SSS";


    public static final String  UTF_8="UTF-8";
    public static final String CONTENT_HTML_TYPE = "text/html; charset=UTF-8";
    public static final String CONTENT_JSON_TYPE = "text/json; charset=UTF-8";
    public static final String CONTENT_XML_TYPE = "text/XML; charset=UTF-8";


    public static final String QUERY_SELFID = "SELFID";
    public static final String QUERY_PARENTID = "PARENTID";
    public static final String QUERY_TITLE = "TITLE";
    public static final String QUERY_SELECTEDKEY = "SELECTEDKEY";
    public static final String QUERY_PAGEQUERYKEY =  "PAGEQUERYKEY";



    public static final String D_KEYTYPE_USER  = "1";
    public static final String D_KEYTYPE_USERGROUP= "2";


    public static final String D_VALID  = "1";  //有效
    public static final String D_INVALID  = "0"; //无效

    public static final String D_FLAG_YES  = "1";  //是
    public static final String D_FLAG_NO  = "0"; //否

    //数据集的数据类型
    public static final String D_DATATYPE_EXHAUSTIVE  = "1";  //穷举模式
    public static final String D_DATATYPE_SQL = "0"; //sql模式

    //导入配置（维护信息）-字段类型设置
    public static final String IMPLIST_FLDSORTING_STR = "str";//文本类型
    public static final String IMPLIST_FLDSORTING_INT = "int";//整数类型
    public static final String IMPLIST_FLDSORTING_MONEY = "money";//金额类型
    public static final String IMPLIST_FLDSORTING_DATE = "date";//期日类型
    public static final String IMPLIST_FLDSORTING_ID = "id";//身份证类型

    //日程表日程类型/背景色
    public static final String PT_SCHEDULE_SCHTYPE_BUSTRAVEL= "busTravel";//出差
    public static final String PT_SCHEDULE_SCHTYPE_MEETING= "meeting";//会议
    public static final String PT_SCHEDULE_SCHTYPE_ROUTINE= "routine";//日常工作
    public static final String PT_SCHEDULE_SCHTYPE_BUSTRAVEL_BGCOLOE= "#fac5a5";//出差背景色
    public static final String PT_SCHEDULE_SCHTYPE_MEETING_BGCOLOE= "#c8e2b3";//会议背景色
    public static final String PT_SCHEDULE_SCHTYPE_ROUTINE_BGCOLOE= "#b6d1ec";//日常工作背景色
    public static final String PT_SCHEDULE_TEXTCOLOR = "#101010";//日程字体背景色

    //对象类型
    public static final String OBJ_TYPE_USER  = "0";//个人
    public static final String OBJ_TYPE_DEPT  = "1";//部门

    //来源类型
    public static final String SOR_TYPE_INFORM  = "0";//通知
    public static final String SOR_TYPE_SCHEDULE  = "1";//日程

    //信息明细类型 inform - 通知  notice - 公告
    public static final String INFO_TYPE_INFORM  = "inform";//通知
    public static final String INFO_TYPE_NOTICE = "notice";//公告

    //文档类型 keyType
    public static final String DOCUMENT_KEYTYPE_INFORM  = "01";//通知
    public static final String DOCUMENT_KEYTYPE_NOTICE = "02";//公告

    //默认分页加载参数(加载100条)
    public static final String DEFAULT_PAGEINDEX = "1";//通知
    public static final String DEFAULT_PAGESIZE = "100";//公告



    public static final String SYS_LOGIN_USER = "SYS_LOGIN_USER";//sql类型的数据集中登录用户参数
    public static final String SYS_LOGIN_USERGROUP = "SYS_LOGIN_USERGROUP";//sql类型的数据集中登录用户组参数
    public static final String SYS_LOGIN_ORG = "SYS_LOGIN_ORG";//sql类型的数据集中登录用户组织机构参数
    public static final String SYS_USER = "SYS_USER";//sql类型的数据集中用户参数
    public static final String SYS_USERGROUP = "SYS_USERGROUP";//sql类型的数据集中用户组参数
    public static final String SYS_ORG = "SYS_ORG";//sql类型的数据集中用户组织机构参数
    public static final String ORG = "ORG";//权限范围判断中组织机构参数
    public static final String USER = "USER";//权限范围判断中用户参数
    public static final String USERGROUP = "USERGROUP";//权限范围判断中用户组参数

	public static final String SESSION_USER_KEY = "LOGIN_SYS_USER_INFO";
	public static final String SESSION_USER_TYPE = "LOGIN_SYS_USER_TYPE";
	public static final String SESSION_USER_NAME = "LOGIN_SYS_USER_NAME";
	public static final String SESSION_JS_VERSION_KEY = "jsVersion";
	public static final String SESSION_MENUID_KEY = "MENUID";
	public static final String SESSION_MENUPID_KEY = "MENUPID";

}
